package cn.tedu.baking.service;

import cn.tedu.baking.pojo.dto.ContentDTO;
import cn.tedu.baking.pojo.vo.*;

import java.util.List;

public interface IContentService {
    void addNew(ContentDTO contentDTO);

    List<ContentManagementVO> listForManagement(Long type, Long userId);

    void deleteById(Long id);

    ContentUpdateVO selectForUpdateById(Long id);

    List<ContentIndexVO> listForIndexByTypeAndCategoryId(Long type, Long categoryId);

    ContentDetailVO detailById(Long id);

    List<ContentSimpleVO> otherListByUserId(Long id);

    List<ContentSimpleVO> hotList();

    List<ContentIndexVO> listByType(long type);

    List<ContentIndexVO> searchByWd(String wd);

    List<ContentAdminVO> listForAdminByType(Long type);
}
